package com.ls.mcp;

import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import org.springframework.ai.tool.annotation.Tool;
import org.springframework.ai.tool.annotation.ToolParam;
import org.springframework.http.HttpEntity;
import org.springframework.http.HttpHeaders;
import org.springframework.http.MediaType;
import org.springframework.http.ResponseEntity;
import org.springframework.stereotype.Service;
import org.springframework.util.StringUtils;
import org.springframework.web.client.RestTemplate;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * @Author 刘帅
 * @Date: 2025-04-01 10:14
 * @RequestID 需求单号
 * @Version 1.0
 */
@Service
public class AlgorithmService {


    @Tool(description = "获取算法结果")
    public String getAlgorithmResult(@ToolParam(description = "图片地址") String imageUrl,
                                     @ToolParam(description = "算法编码") String algorithmCode) {


        return "算法识别异常了";
    }



}
